package sdmakerz_v1.coresyntax.generator;

@SuppressWarnings("all")
public class SDMakerV1IDProvider {
  private static int id = 0;
  
  private static int minID = 0;
  
  public static int computeID() {
    int nextID = SDMakerV1IDProvider.id;
    int _plus = (SDMakerV1IDProvider.id + 1);
    SDMakerV1IDProvider.id = _plus;
    return nextID;
  }
  
  public static void reinitIDs() {
    SDMakerV1IDProvider.id = SDMakerV1IDProvider.minID;
  }
  
  public static void setMinimalIDNumber(final int min) {
    SDMakerV1IDProvider.minID = min;
    boolean _greaterThan = (SDMakerV1IDProvider.minID > SDMakerV1IDProvider.id);
    if (_greaterThan) {
      SDMakerV1IDProvider.id = SDMakerV1IDProvider.minID;
    }
  }
}
